/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hashmap;

import java.util.ArrayList;

/**
 *
 * @author s0920761
 */
public class Strip {
    public String s(String w){
        ArrayList<String> punctuations=new ArrayList<String>();
        punctuations.add(",");
        punctuations.add(".");
        punctuations.add("?");
        punctuations.add("!");
        for(String punctuation:punctuations)
        {
            
            w= w.replace(punctuation, "");
        }
        return w;
    }

}
